package com.amit.Basic_Simple_Program;

import java.util.Scanner;

public class Reverse_Number {

	public static void main(String[] args) {
		
		System.out.println("please enter a number");
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		
		int sum=0;
		for(;n>0;)
		{
			int rem=n%10;
			sum=rem+10*sum;
			n=n/10;
			
		}
		
		System.out.println("The reverse of number"+sum);
		
		

	}

}
